Median graph